import Http from "@/http";

export function cardsApi(){
    return Http.post('chargingCard/cards')
}

export function bindApi(cardNo:string){
    return Http.post('chargingCard/bind', {cardNo})
}

export function unbindApi(id:number){
    return Http.post('chargingCard/unbind', {id})
}

export function rechargeApi(cardId:number, optionId){
    return Http.post('chargingCard/recharge/pay', {cardId, optionId})
}

export function rechargeRecordApi(params:any){
    return Http.post('chargingCard/recharge/record', params)
}